home *** CD-ROM | disk | FTP | other *** search
/ Megaware 1 / Megaware Volume 1.iso / programg / c-tutor / car.hpp < prev    next >
Text File  |  1990-07-20  |  320b  |  17 lines

  1.                                   // Chapter 7 - Program 4
  2. #include "vehicle.hpp"
  3.  
  4. class car : public vehicle {
  5.    int passenger_load;
  6. public:
  7.    void initialize(int in_wheels, float in_weight, int people = 4);
  8.    int passengers(void);
  9. };
  10.  
  11.  
  12.  
  13.  
  14. // Result of execution
  15. //
  16. // (this file cannot be executed)
  17.